﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="test.aspx.cs" Inherits="SvOtchet.page.test" %>

<%@ Register Assembly="DevExpress.Web.ASPxGridView.v8.1, Version=8.1.6.0, Culture=neutral, PublicKeyToken=9b171c9fd64da1d1"
    Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dxwgv" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <dxwgv:ASPxGridView ID="ASPxGridView1" runat="server" 
            AutoGenerateColumns="False" DataSourceID="ObjectDataSource1" 
            KeyFieldName="OrganizationID">
            <Columns>
                <dxwgv:GridViewCommandColumn VisibleIndex="0">
                    <NewButton Visible="True">
                    </NewButton>
                </dxwgv:GridViewCommandColumn>
                <dxwgv:GridViewDataTextColumn FieldName="OrganizationID" ReadOnly="True" 
                    VisibleIndex="1">
                    <EditFormSettings Visible="False" />
                </dxwgv:GridViewDataTextColumn>
                <dxwgv:GridViewDataTextColumn FieldName="OrganizationName" VisibleIndex="2">
                </dxwgv:GridViewDataTextColumn>
            </Columns>
            
        </dxwgv:ASPxGridView>

    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" DeleteMethod="Delete" 
            InsertMethod="Insert" OldValuesParameterFormatString="original_{0}" 
            SelectMethod="GetData" 
            TypeName="SvOtchet.DataModel.todb.DataSet1TableAdapters.OrganizationsTableAdapter" 
            UpdateMethod="Update">
        <DeleteParameters>
            <asp:Parameter Name="Original_OrganizationID" Type="Int32" />
        </DeleteParameters>
        <UpdateParameters>
            <asp:Parameter Name="OrganizationName" Type="String" />
            <asp:Parameter Name="Original_OrganizationID" Type="Int32" />
        </UpdateParameters>
        <InsertParameters>
            <asp:Parameter Name="OrganizationName" Type="String" />
        </InsertParameters>
        </asp:ObjectDataSource>
    <div>
    видна только роли "user"
    </div>
    </form>
</body>
</html>
